package com.kinyx.framework.utils;

import org.junit.Assert;
import org.junit.Test;

public class KStringUtils_Tester_hump2words {

	@Test
	public void test1() {
		Assert.assertEquals(null, KStringUtils.hump2words(null, null, true));
		Assert.assertEquals(null, KStringUtils.hump2words("null", null, true));

		Assert.assertEquals("", KStringUtils.hump2words("", null, true));
		Assert.assertEquals(" ", KStringUtils.hump2words(" ", null, true));

		Assert.assertEquals("FOO BAR QUX", KStringUtils.hump2words("fooBarQux", null, true));
		Assert.assertEquals("MALFORMED URL EXCEPTION", KStringUtils.hump2words("MalformedURLException", null, true));
		Assert.assertEquals("IO EXCEPTION", KStringUtils.hump2words("IOException", null, true));
	}

	@Test
	public void test2() {
		Assert.assertEquals(null, KStringUtils.hump2words(null, null, false));
		Assert.assertEquals(null, KStringUtils.hump2words("null", null, false));

		Assert.assertEquals("", KStringUtils.hump2words("", null, false));
		Assert.assertEquals(" ", KStringUtils.hump2words(" ", null, false));

		Assert.assertEquals("foo bar qux", KStringUtils.hump2words("fooBarQux", null, false));
		Assert.assertEquals("malformed URL exception", KStringUtils.hump2words("MalformedURLException", null, false));
		Assert.assertEquals("IO exception", KStringUtils.hump2words("IOException", null, false));
	}

}
